import mongoose from 'mongoose'
// 生成Schema模型
const Schema = mongoose.Schema
const dormInfoSchema = new Schema({
  tower: {
    type: String
  },
  dorm: {
    type: String
  },
  dormLeader: {
    type: String
  },
  class: {
    type: String
  },
  studentNumber: {
    type: String
  },
  spare: {
    type: String,
    default: '6'
  },
  score: {
    type: String
  }
})

export default mongoose.model('dormInfo', dormInfoSchema, 'dormInfo')
